import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/sale/deliver/list',
    method: 'post',
    data: data
  })
}
export function review(data) {
  return request({
    url: '/sale/deliver/review',
    method: 'post',
    data: data
  })
}
export function addOrUpdate(data) {
  return request({
    url: '/sale/deliver/addOrEdit',
    method: 'post',
    data: data
  })
}
export function remove(data) {
  return request({
    url: '/sale/deliver/delete',
    method: 'post',
    data: { deleteIds: data }
  })
}
export function getInfo(data) {
  return request({
    url: '/sale/deliver/' + data,
    method: 'get'
  })
}
export function repealDeliver(data) {
  return request({
    url: '/sale/deliver/repealDeliverById/' + data,
    method: 'post'
  })
}
export function getPrintlist(data) {
  return request({
    url: '/system/print/record/search',
    method: 'post',
    data: data
  })
}
export function updateFile(data) {
  return request({
    url: 'sale/deliver/updateFile',
    method: 'post',
    data: data
  })
}

